from django.contrib import admin
from django.urls import path
from MedRecordInfo import views

urlpatterns=[
    path('', views.index, name="myapp_Medrecordinfo_index"),  # 浏览
    path('search', views.search, name="myapp_Medrecordinfo_search"),# 查询
    path('add', views.add, name="myapp_Medrecordinfo_add"),  # 添加表单
    path('insert', views.insert, name="myapp_Medrecordinfo_insert"),  # 执行添加
    path("delete/<slug:nid>", views.delete, name="myapp_Medrecordinfo_delete"),  # 执行删除
    path('edit/<slug:hspid>', views.edit, name="myapp_Medrecordinfo_edit"),  # 加载编辑表单
    path('update', views.update, name="myapp_Medrecordinfo_update"),  # 执行编辑
    path('patients', views.patients, name="myapp_Medrecordinfo_patients"),  # 执行病历操作
    path('records/<slug:hspid>', views.records, name="myapp_Medrecordinfo_records"),  # 执行选择操作
    path('records/total/<slug:hspid>/<slug:templateid>', views.total, name="myapp_Medrecordinfo_total"),  # 合并操作
    path('update1', views.update1, name="myapp_Medrecordinfo_update1"),  # 执行编辑

]